package test2;

public class demo72 {
    class Solution {
        public void moveZeroes(int[] nums) {
            int l = 0;
            for(int r = 0;r<nums.length;r++)
            {
                if(nums[r] == 0) continue;
                int tmp = nums[l];
                nums[l] = nums[r];
                nums[r] = tmp;
                l++;
            }

        }
    }
}
